home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
56804
/
56804.xpi
/
chrome
/
content
/
alexaLicense.js
< prev
next >
Wrap
Text File
|
2010-01-31
|
828b
|
30 lines
if(!com) var com={};
if(!com.seostatus) com.seostatus={};
com.seostatus.alexaLicense = function(){
var pub = {};
pub.pref = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService);
pub.stb_set_agreement_settings = function()
{
var branch = pref.getBranch("seostatus.");
try
{
document.getElementById("Alexa_Agree").checked = branch.getBoolPref("stb_alexa_agree");
}
catch(e)
{
document.getElementById("Y-Agree").checked = false;
}
}
pub.stb_save_agreement_settings = function()
{
var branch = pub.pref.getBranch("seostatus.");
try{
branch.setBoolPref("stb_alexa_agree", document.getElementById("Alexa_Agree").checked);
}
catch(e){}
}
return pub;
}();